package homework04;

public class Monster {
	private String name;
	//名称
	private int life;
	//生命值
	private int defense;
	//防御力
	private int attack;
	//攻击力
	public Monster(String name, int life, int defense, int attack) {
		super();
		this.name = name;
		this.life = life;
		this.defense = defense;
		this.attack = attack;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getLife() {
		return life;
	}
	public void setLife(int life) {
		this.life = life;
	}
	public int getDefense() {
		return defense;
	}
	public void setDefense(int defense) {
		this.defense = defense;
	}
	public int getAttack() {
		return attack;
	}
	public void setAttack(int attack) {
		this.attack = attack;
	}
	
}
